// ============================================================================
//
// Copyright (C) 2006-2007 Dengues
//
// Google Group: http://groups.google.com/group/dengues
// QQ Group: 24885404
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
//
// ============================================================================
package org.dengues.core.warehouse;

import org.dengues.core.i18n.Messages;

/**
 * Qiang.Zhang.Adolf@gmail.com class global comment. Detailled comment <br/>
 * 
 * $Id: Dengues.epf 2007-12-5 qiang.zhang $
 * 
 */
public enum ENodeCategoryName {
    // data source category
    DATABASE(Messages.getString("ENodeCategoryName.db"), "0.1"), //$NON-NLS-1$ //$NON-NLS-2$
    DATASOURCE(Messages.getString("ENodeCategoryName.datasource"), "0.1"), //$NON-NLS-1$ //$NON-NLS-2$
    XMLFILE(Messages.getString("ENodeCategoryName.xmlfile"), "0.1"), //$NON-NLS-1$ //$NON-NLS-2$
    FLATFILE(Messages.getString("ENodeCategoryName.flatfile"), "0.1"), //$NON-NLS-1$ //$NON-NLS-2$
    WEBSERVICE(Messages.getString("ENodeCategoryName.webservice"), "0.1"), //$NON-NLS-1$ //$NON-NLS-2$

    TABLE("Table", "0.1"),
    QUERY("Query", "0.1"),

    BIN(Messages.getString("ENodeCategoryName.trash"), "0.1"), //$NON-NLS-1$ //$NON-NLS-2$
    // ETL Process
    PROCESS(Messages.getString("ENodeCategoryName.process"), "0.1"), //$NON-NLS-1$ //$NON-NLS-2$
    // Report category
    REPORTS(Messages.getString("ENodeCategoryName.reports"), "0.1");//$NON-NLS-1$ //$NON-NLS-2$

    private String displayName;

    private String version;

    /**
     * Qiang.Zhang.Adolf@gmail.com ENodeCategoryName constructor comment.
     * 
     * @param displayName
     * @param version
     */
    ENodeCategoryName(String displayName, String version) {
        this.displayName = displayName;
        this.version = version;
    }

    /**
     * Qiang.Zhang.Adolf@gmail.com Comment method "getName".
     * 
     * @return
     */
    public String getName() {
        return toString().toLowerCase();
    }

    /**
     * Getter for displayName.
     * 
     * @return the displayName
     */
    public String getDisplayName() {
        return this.displayName;
    }

    /**
     * Getter for version.
     * 
     * @return the version
     */
    public String getVersion() {
        return this.version;
    }
}
